﻿@using System
@using RazorHostingTests
@inherits Westwind.RazorHosting.RazorTemplateFolderHost<RazorHostingTests.Person>
@{
    var items = new int[3] {1, 2, 3};
}<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    
    <link href="~/css/anothersub/Item.css" rel="stylesheet" />
</head>
    <body>        
        <div>        
            @Model.Name @Model.Company @Model.Address.City @Model.Entered
        </div>
    
    <div class="@Model.Name @Model.Company">
        Pseudo Attributes value injection
    </div>
        
    <h3>CSharp Roslyn Support</h3>
    @{
        var elvisAddress = Model?.Address?.Street;
    }
    <div>@elvisAddress</div>
    <div>@($"You live at {elvisAddress}")</div>




    @{
    
            for (int i = 0; i < 10; i++)
            {
                Response.WriteLine(i + ".");
                <div>@i</div>
            }

            @
    {
        ResultData = "Hello from the template " + DateTime.Now;
    }        
        }
    
        @ResultData
    </body>
</html>